package com.nanuminc.market.settings.login;

import android.content.Intent;
import android.os.Bundle;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.nanuminc.market.R;
import com.nanuminc.market.common.NavigationActivity;

public class LoginSetting extends NavigationActivity {

	final static int LOGIN = 1;
	final static int JOIN = 7;
	TextView title_left, title_center, title_right;
	
	@Override
	public void onCreate(Bundle savedInstanceState) {
	    super.onCreate(savedInstanceState);
	    setContentView(R.layout.setting_login);
    
		title_left = (TextView) findViewById(R.id.btn_location);
		title_center = (TextView) findViewById(R.id.btn_title);
		title_right = (TextView) findViewById(R.id.btn_search);
		title_left.setVisibility(View.INVISIBLE);
		title_right.setVisibility(View.INVISIBLE);
		title_center.setVisibility(View.VISIBLE);
		title_center.setText(R.string.login_setting);
		
		
		findViewById(R.id.btn_login2).setOnClickListener(mClickListener);
		findViewById(R.id.btn_join).setOnClickListener(mClickListener);
		
	}
	
	Button.OnClickListener mClickListener = new Button.OnClickListener() {
		@Override
		public void onClick(View v) {
			switch(v.getId()) {
				case R.id.btn_login2:
				{
					Intent intent = new Intent(LoginSetting.this, Login.class);
					intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_SINGLE_TOP);
					//intent.putExtra("id", items.get(position).id);
					goNextHistory("Login",intent);
					break;
				}
				case R.id.btn_join:
				{
					Intent intent = new Intent(LoginSetting.this, Join.class);
					intent.setFlags(Intent.FLAG_ACTIVITY_CLEAR_TOP |Intent.FLAG_ACTIVITY_SINGLE_TOP);
					//intent.putExtra("id", items.get(position).id);
					goNextHistory("Join",intent);
					break;
				}
			}
		}
		
	};
	@Override
	protected void onDestroy() {
		Log.e("nanum","LoginSetting onDestroy");
		// TODO Auto-generated method stub
		super.onDestroy();
	}

	@Override
	protected void onPause() {
		Log.e("nanum","LoginSetting onPause");
		// TODO Auto-generated method stub
		super.onPause();
	}

	@Override
	protected void onRestart() {
		Log.e("nanum","LoginSetting onRestart");
		// TODO Auto-generated method stub
		super.onRestart();
	}

	@Override
	protected void onResume() {
		Log.e("nanum","LoginSetting onResume");
		// TODO Auto-generated method stub
		super.onResume();
	}

	@Override
	protected void onStart() {
		Log.e("nanum","LoginSetting onStart");
		// TODO Auto-generated method stub
		super.onStart();
	}

	@Override
	protected void onStop() {
		Log.e("nanum","LoginSetting onStop");
		// TODO Auto-generated method stub
		super.onStop();
	}
}